use tokio::fs;

use crate::error::IoErr;



pub const HTML_DIR: &'static str = "./data/html";
pub const DB_PATH: &'static str = "./data/data.db";
pub const WEB_ADDR: &'static str = "0.0.0.0:33334";
pub const DEVICE_TCP_ADDR: &'static str = "0.0.0.0:33335";

pub const ROOT_ACCOUNT: &'static str = "root";
pub const ROOT_PWD: &'static str = "root1234";
pub const ROOT_NAME: &'static str = "管理员";


pub async fn init() -> Result<(), IoErr> {

    fs::create_dir_all(HTML_DIR).await?;

    Ok(())
}

